package com.king.designpatterns.七大原则.单一职责;

/**
 * 用户信息
 * @author king
 * @date 2020/9/28 13:49
 */
public class User {

    private String username;
    private String userpass;
    private Integer role;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUserpass() {
        return userpass;
    }

    public void setUserpass(String userpass) {
        this.userpass = userpass;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    public User() {
    }

    public User(String username, String userpass, Integer role) {
        this.username = username;
        this.userpass = userpass;
        this.role = role;
    }

    @Override
    public String toString() {
        return "User{" +
                "username='" + username + '\'' +
                ", userpass='" + userpass + '\'' +
                ", role=" + role +
                '}';
    }
}
